import { pubRequire } from '@utils/public'
const baseUrl = '/home-work-tops'
/* 作业作品生活置顶排序获取列表 */
export function getSearchList(params, callbBack, errBack) {
  return pubRequire('get', `/tops`, params, callbBack, errBack)
}
/* 批量取消置顶*/
export function batchRemove(obj, callbBack, errBack) {
  return pubRequire('put', `/homes/untop`, obj, callbBack, errBack)
}
/* 单个取消置顶*/
export function deleteReq(id, callbBack, errBack) {
  return pubRequire('put', `/homes/untop/${id}`, id, callbBack, errBack)
}
/*排序表单提交*/
export function sortPosts(id, params, callbBack, errBack) {
  return pubRequire('put', `/tops/${id}`, params, callbBack, errBack)
}
